package com.zbkj.crmeb.chant.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class MemberLevelRequest implements Serializable {

    @ApiModelProperty(value = "id")
    @NotNull(message = "id不能为空")
    private Integer id;

    @ApiModelProperty(value = "会员等级名称")
    @NotBlank(message = "等级名称不能为空")
    private String name;

    @ApiModelProperty(value = "升级条件")
    @NotNull(message = "升级条件不能为空")
    private BigDecimal condition;

    @ApiModelProperty(value = "等级图标")
    @NotBlank(message = "等级图标不能为空")
    private String icon;

    @ApiModelProperty(value = "价格阶梯（1售价  2加价率  3折扣）")
    @NotNull(message = "价格阶梯不能为空")
    private Integer priceLadder;

    @ApiModelProperty(value = "价格比例")
    private BigDecimal ratio;

    @ApiModelProperty(value = "商户id",hidden = true)
    private Integer merId;

    @ApiModelProperty(value = "状态（0关闭  1开启）")
    @NotNull(message = "状态不能为空")
    private Integer status;

}